<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>班级管理</title>
    <jsp:include page="/static/common/easyui-header.jsp"></jsp:include>
    <script type="text/javascript" src="/static/js/views/classgrade.js"></script>
</head>
<body>
    <table id="classgrade_datagrid"></table>
    <%--工具条--%>
    <div id="classgrade_datagrid_toolbar">
        <a class="easyui-linkbutton" iconCls="icon-add" plain="true" data-cmd="addClassgrade">新增</a>
        <a class="easyui-linkbutton" iconCls="icon-edit" plain="true"  data-cmd="editClassgrade">编辑</a>
        <a class="easyui-linkbutton" iconCls="icon-remove" plain="true" data-cmd="removeClassgrade">删除</a>
        <a class="easyui-linkbutton" iconCls="icon-reload" plain="true" data-cmd="reloadClassgrade">刷新</a>
        <a class="easyui-linkbutton" iconCls="icon-man" plain="true" data-cmd="selectClassgrade">分配班主任</a>
    </div>
    <%--新增的弹窗--%>
    <div id="classgrade_dialog" style="padding: 10px">
        <form id="classgrade_add_form" method="post">
            <input type="hidden" name="id" id="classgrade_id">
            <table>
                <tr>
                    <td>班级名称:<input name="name" class="easyui-textbox"></td></tr>
                    <td>学生数量:<input name="stuNumber" class="easyui-textbox"></td></tr>
                <tr>
                    <td>所属学院:<input class="easyui-combobox" name="college.id"
                                    data-options="valueField:'id',textField:'name',url:'/systemDictionary/college'">
                    </td>
                </tr>
                <tr>
                    <td>所在教室:<input class="easyui-combobox" id="classroom" name="classroom.id"
                                    data-options="valueField:'id',textField:'name',url:'/classroom/queryAll'"
                    ></td>
                </tr>
            </table>
        </form>
    </div>
    <%--分配班主任的dialog--%>
    <div id="teacher_dialog">
        <form id="teacher_form" method="post">
            <input type="hidden" name="id" id="employee_id">
            <table>
                <tr>
                    <td>
                        班主任:<input id="employee" class="easyui-combobox" name="employee.id"
                                   data-options="url:'/employee/selectTeacherByRoleIdWithSchedle?id=8',valueField:'id',textField:'realName'">
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <%--弹窗的底部工具--%>
    <div id="classgrade_dialog_buttons">
        <a class="easyui-linkbutton" iconCls="icon-save" plain="true"  data-cmd="save" >保存</a>
        <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
    </div>
    <%--分配班主任底部工具条--%>
    <div id="teacher_btns">
        <a class="easyui-linkbutton" iconCls="icon-save" plain="true"  data-cmd="confirm" >确定</a>
        <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
    </div>
</body>
</html>
